<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionParametro.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTblretefuenteTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">

            <h:form>
                <p:panel id="panel" styleClass="panelCabeza" header="#{bundle.CreateTblretefuenteTitle}">
                    <p:messages id="msgs"/>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.CreateTblretefuenteLabel_codRetefuente}" for="codRetefuente" />
                        <p:inputText id="codRetefuente" value="#{tblretefuenteController.selected.codRetefuente}" title="#{bundle.CreateTblretefuenteTitle_codRetefuente}" required="true" requiredMessage="#{bundle.CreateTblretefuenteRequiredMessage_codRetefuente}"/>
                        <h:outputLabel value="#{bundle.CreateTblretefuenteLabel_salarioRetefuente}" for="salarioRetefuente" />
                        <p:inputText id="salarioRetefuente" value="#{tblretefuenteController.selected.salarioRetefuente}" title="#{bundle.CreateTblretefuenteTitle_salarioRetefuente}" required="true" requiredMessage="#{bundle.CreateTblretefuenteRequiredMessage_salarioRetefuente}"/>
                        <h:outputLabel value="#{bundle.CreateTblretefuenteLabel_ARetefuente}" for="ARetefuente" />
                        <p:inputText id="ARetefuente" value="#{tblretefuenteController.selected.ARetefuente}" title="#{bundle.CreateTblretefuenteTitle_ARetefuente}" required="true" requiredMessage="#{bundle.CreateTblretefuenteRequiredMessage_ARetefuente}"/>
                        <h:outputLabel value="#{bundle.CreateTblretefuenteLabel_porcentajeRetefuente}" for="porcentajeRetefuente" />
                        <p:inputText id="porcentajeRetefuente" value="#{tblretefuenteController.selected.porcentajeRetefuente}" title="#{bundle.CreateTblretefuenteTitle_porcentajeRetefuente}" required="true" requiredMessage="#{bundle.CreateTblretefuenteRequiredMessage_porcentajeRetefuente}"/>
                        <h:outputLabel value="#{bundle.CreateTblretefuenteLabel_valorRetefuente}" for="valorRetefuente" />
                        <p:inputText id="valorRetefuente" value="#{tblretefuenteController.selected.valorRetefuente}" title="#{bundle.CreateTblretefuenteTitle_valorRetefuente}" required="true" requiredMessage="#{bundle.CreateTblretefuenteRequiredMessage_valorRetefuente}"/>
                        
                    </h:panelGrid>
                    
                    <p:commandButton action="#{tblretefuenteController.create}" update="panel" value="#{bundle.CreateTblretefuenteSaveLink}" />
                  
                    <p:commandButton action="#{tblretefuenteController.prepareList}" value="#{bundle.CreateTblretefuenteShowAllLink}" immediate="true"/>
                    </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
